package s;

import java.util.*;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;

public class sm {
    static class Point{
        int x;
        int y;
        Point(int x,int y){
            this.x=x;
            this.y=y;
        }

    }
    public static void main(String[] args) {
        int[] sj={1,6,3,5,2,7,5,8};
        int[] temp=new int[sj.length];
        int a=-2;
        String s=new String("a");
        String b=new String("a");
        String sm=new String("a")+new String("a");
        //String sm=new String("aa");
        String jb=sm.intern();
        String j=s.intern();
        String s2="a";
        Point p1=new Point(1,1);
        Point p2=new Point(2,2);
        PriorityQueue<Point> p=new PriorityQueue<>((Point o1,Point o2)
                -> {return o1.x-o2.x;});
        p.add(p1);
        p.add(p2);
        PriorityQueue<Point> ps=new PriorityQueue<>((Point o1,Point o2)
                -> {return o2.x-o1.x;});
        ps.add(p1);
        ps.add(p2);
        System.out.println(p.toString());
        System.out.println(ps.toString());
        short i=1;
        int sf=2;
        i=(short)(i+sf);
        System.out.println("sss");
        System.out.println("a");

        sf=(sf+i);




        String s3=s+s2;
        String s4="ab";

        System.out.println(a>>>3);


    }

    }

